using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data.SqlClient;
using System.Text;
using NUnit.Framework;
using NMock;
using System.Data;
using MeetingRoom.Data.Implementation;
using MeetingRoom.Domain;

namespace MeetingRoom.UnitTest
{
    [TestFixture]
    public class DataTest
    {
        [Test]
        public void TestGetMeetingRoomTypeById()
        {
            SimpleMeetingRoomTypeQuery target = new SimpleMeetingRoomTypeQuery();
            target.Connection = new SqlConnection(
                ConfigurationSettings.AppSettings["connectionString"]);

            using (target.Connection)
            {
                target.Connection.Open();
                MeetingRoomType meetingRoomType = target.GetMeetingRoomTypeBySizeBySize(10);
                Assert.IsNotNull(meetingRoomType);
//                Assert.AreEqual(10, meetingRoomType.Size);
            }
        }

        [Test]
        public void TestGetMeetingRoomTypeList()
        {
            
        }
    }
}
